package org.ymjava.medical.db.AllPackage.biz;

import com.ace.cache.annotation.Cache;
import org.springframework.stereotype.Service;

import org.ymjava.medical.db.AbstractBaseBiz.BaseBiz;
import org.ymjava.medical.db.AllPackage.entity.PrepareForClass;
import org.ymjava.medical.db.AllPackage.mapper.PrepareForClassMapper;
import tk.mybatis.mapper.entity.Example;

import java.util.List;

/**
 * 
 *
 * @author zhy
 * @email ${email}
 * @date 2020-03-23 13:18:55
 */
@Service
public class PrepareForClassBiz extends BaseBiz<PrepareForClassMapper,PrepareForClass> {

    @Cache(key = "nurse_answer_home_list_prepare")
    public List<PrepareForClass> get_list_sort(){
        Example example = new Example(PrepareForClass.class);

        example.createCriteria().andEqualTo("deleted",0);
        example.orderBy("sort");

        List<PrepareForClass> list_class = selectByExample(example);

        return list_class;
    }
}